<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/emCategory/categoryLookup" onsubmit="return dwzSearch(this, 'dialog');">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="categoryCode"><@label key="categoryCode.C,colon">设备类别编号：</@label></label> <input type="text" name="categoryCode" value="${condition.categoryCode!''}" />
                </li>
                <li><label id="categoryText"><@label key="categoryText.C,colon">设备类别描述：</@label></label> <input type="text" name="categoryText" value="${condition.categoryText!''}" />
                </li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div></li>
            </ul>
        </div>
        <div>
        <table  targetType="dialog"  class="table border" width="100%" layoutH="105" style="overflow: scroll;">
        <thead>
            <tr>
                <th width="100" orderField="categoryCode"<#if (page.orderField?? && page.orderField == 'categoryCode')>class="${page.orderDirection!''}"</#if>><@label key="categoryCode.C">设备类别编号</@label></th>
                <th width="100" orderField="categoryText"<#if (page.orderField?? && page.orderField == 'categoryText')>class="${page.orderDirection!''}"</#if>><@label key="categoryText.C">设备类别描述</@label></th>
                <th width="100"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as category>
            <tr target="category_code" rel="${category.categoryCode!''}">
                <td>${category.categoryCode!''}</td>
                <td>${category.categoryText!''}</td>
                <td><a class="btnSelect bringBack" value="categoryCode:'${category.categoryCode!''}', categoryText:'<@json_escape>${category.categoryText!''}</@json_escape>'" >选择</a></td>        
            </tr>
            </#list> <#else>
            <tr target="category_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="category_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
        </div>
    </div>
</form>
